#include <iostream>

using std::cin;
using std::cout;
using std::endl;
using std::string;

int main()
{
	string s1, s2;
	cin >> s1 >> s2;
	
	if(s1 == s2)
	{
		cout << s1 << " is equals to " << s2 << endl;
	}
	else if(s1 > s2)
	{
		cout << s1 << " is bigger than " << s2 << endl;
	}
	else 
	{
		cout << s2 << " is bigger than " << s1 << endl;
	}

	string::size_type st1 = s1.size();
	string::size_type st2 = s2.size();
	
	if(st1 == st2)
	{
		cout << "size equal" << endl;
	}
	else if(st1 > st2)
	{
		cout << s1 << " is longer than " << s2 << endl;
	}
	else
	{
		cout << s2 << " is longer than " << s1 << endl;
	}

	return 0;
}
